package com.aimei.www.modules.exception;


import com.aimei.www.modules.enums.ExceptionEnum;

public class AimeiException extends RuntimeException {
       public String code;
       public String mes;

       public AimeiException(String code, String mes) {
              this.code = code;
              this.mes = mes;
       }

       public AimeiException(String code) {
              this.code = code;
              this.mes = ExceptionEnum.HAVE_NO_RIGHT.message;
       }
       public AimeiException() {
              super();
       }

       public AimeiException(String message, String code, String mes) {
              super(message);
              this.code = code;
              this.mes = mes;
       }
}
